import { ApiVersoin } from '@/common/enums/httpEnum'

const Url = {
  seeHouseList: `${ApiVersoin.V3}/reserves/my-see-house-list`,
  seeHouseDetail: `${ApiVersoin.V3}/reserves/my-see-house-detail`,
  cancelHouse: `/reserves/cancel-see-house`,
}

export const seeHouseList = (params) => uni.$uv.http.get(Url.seeHouseList, { params, custom: { showLoading: true } })
export const seeHouseDetail = (params) => uni.$uv.http.get(Url.seeHouseDetail, { params, custom: { showLoading: false } })
export const cancelHouse = (data) => uni.$uv.http.post(Url.cancelHouse, data, { custom: { showLoading: true } })
